<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<title>CodeArchive</title>
		<%= stylesheet_link_tag 'style' %>
	

		<%= stylesheet_link_tag 'shCore.css' %>
		<%= stylesheet_link_tag 'shThemeDefault.css' %>
		<%= javascript_include_tag :defaults %>
		<script type="text/javascript" src="/javascripts/scripts/shCore.js"></script>
		<script type="text/javascript" src="/javascripts/scripts/shBrushBash.js"></script>
		<script type="text/javascript" src="/javascripts/scripts/shBrushCpp.js"></script>
		<script type="text/javascript" src="/javascripts/scripts/shBrushCSharp.js"></script>
		<script type="text/javascript" src="/javascripts/scripts/shBrushCss.js"></script>
		<script type="text/javascript" src="/javascripts/scripts/shBrushDelphi.js"></script>
		<script type="text/javascript" src="/javascripts/scripts/shBrushDiff.js"></script>
		<script type="text/javascript" src="/javascripts/scripts/shBrushGroovy.js"></script>
		<script type="text/javascript" src="/javascripts/scripts/shBrushJava.js"></script>
		<script type="text/javascript" src="/javascripts/scripts/shBrushJScript.js"></script>
		<script type="text/javascript" src="/javascripts/scripts/shBrushPhp.js"></script>
		<script type="text/javascript" src="/javascripts/scripts/shBrushPlain.js"></script>
		<script type="text/javascript" src="/javascripts/scripts/shBrushPython.js"></script>
		<script type="text/javascript" src="/javascripts/scripts/shBrushRuby.js"></script>
		<script type="text/javascript" src="/javascripts/scripts/shBrushScala.js"></script>
		<script type="text/javascript" src="/javascripts/scripts/shBrushSql.js"></script>
		<script type="text/javascript" src="/javascripts/scripts/shBrushVb.js"></script>
		<script type="text/javascript" src="/javascripts/scripts/shBrushXml.js"></script>
		<script type="text/javascript">
			SyntaxHighlighter.config.clipboardSwf = '/javascripts/scripts/clipboard.swf';
			SyntaxHighlighter.all();
		</script>
	</head>
	<body>
		<div id="wrapper">
			<div id="sidebar">
				<!--<div id="slika" onclick="window.location='/'"></div>-->
				<p id="title" onclick="window.location='/'">
					<b>{</b>code_archive<b>}</b>
					<!--<a class="page_title_1" href="/">CODE</a>
					<a class="page_title_2" href="/">ARCHIVE</a>-->
				</p>
				<ul>
					<li onclick="window.location='/'"><a class="buttons" href="/">Main</a></li>
					<li><a class="buttons" href="/codes">Library</a></li>
					<li><a class="buttons" href="/help">Help</a></li>
					<% if session[:user_id] %>
						<li><a class="buttons" href="/codes/new">Add Code</a></li>
						<li><a class="buttons" href="/profile">Profile</a></li>
					<% end %>
				</ul>
				
				<div id="loginbar">
					<% if !session[:user_id].nil? %> 
						<%= render :partial => "sessions/create" %>
					<% else %>
						<%= render :partial => "sessions/destroy" %>
					<% end %>
				</div>
			</div>
			<div id="main">
				
				
				
				<%= yield %>
			</div>
			<div style="clear: both"></div>
		</div>
		<script type="text/javascript">
		  var _gaq = _gaq || [];
		  _gaq.push(['_setAccount', 'UA-15990588-2']);
		  _gaq.push(['_trackPageview']);
		
		  (function() {
		    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
		    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
		    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
		  })();
		</script>
	</body>
</html>
